<template>
  <div class="contain">
    <img :src="imgSrc" alt="" />
    <span>{{ text }}</span>
  </div>
</template>

<script>
export default {
  props: {
    imgSrc: {
      type: String,
      required: true,
    },
    text: {
      type: String,
      required: true,
    },
  },
  data() {
    return {};
  },
};
</script>

<style scoped>
.contain {
  width: 300px;
  height: 340px;
  border: 2px solid black;
  text-align: center;
}

img {
  width: 300px;
  margin-bottom: 10px;
}
</style>
